/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.dao.RecommendCommodityDao;
import com.hboxs.asl.entity.Product;
import com.hboxs.asl.entity.RecommendCommodity;
import com.hboxs.asl.service.RecommendCommodityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Service - 反馈信息
 */
@Service("recommendCommodityServiceImpl")
public class RecommendCommodityServiceImpl extends BaseServiceImpl<RecommendCommodity, Long> implements RecommendCommodityService {

    @Resource(name = "recommendCommodityDaoImpl")
    private RecommendCommodityDao recommendCommodityDao;

    @Resource(name = "recommendCommodityDaoImpl")
    public void setBaseDao(RecommendCommodityDao recommendCommodityDao) {
        super.setBaseDao(recommendCommodityDao);
    }


    @Override
    public List<RecommendCommodity> findCurRecomCmdt() {
        return recommendCommodityDao.findCurRecomCmdt();
    }

    @Override
    public RecommendCommodity findByProduct(Product product) {
        return recommendCommodityDao.findByProduct(product);
    }
}
